import { createApp } from 'vue';
import App from './App.vue';
import { router } from './router';
import { createPinia } from 'pinia';
import CommonPlugins from './commons';
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/src/index.scss';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import ZWCommonUI from '@zhongwan/zw-unitykit-common-ui';
import logger from './commons/arms';

const app = createApp(App);
app.use(logger); // 阿里云arms监听上传
app.use(router);
app.use(createPinia());
app.use(CommonPlugins);
app.use(ZWCommonUI, { domainApi: import.meta.env.VITE_BASE_API_URL });
app.use(ElementPlus, {
    locale: zhCn,
    zIndex: 2000,
    size: 'default'
});
app.mount('#app');
